<?php /* Smarty version 2.6.13, created on 2006-11-04 17:21:26
         compiled from file:C:%5Cdev%5Cxampp%5Chtdocs%5Cprojects%5Cbaj%5Csrc%5Cinclude%5Cplugins%5Corders/tpl/productlist.tpl.php */ ?>
<div><?php echo $this->_tpl_vars['catalog_hs']; ?>
</div>
<br/>
<div>
    <form method="POST"  name="catalog_name" action="<?php echo $this->_tpl_vars['url_location']; ?>
" >
    Select Catalog:
    <?php if ($this->_tpl_vars['folder_locations_empty'] != 'Y'): ?>
    <select name="parent_id" onchange="document.catalog_name.submit()"> 
    <?php $_from = $this->_tpl_vars['folder_locations']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['folder']):
?>
        <option value="<?php echo $this->_tpl_vars['folder']['id']; ?>
" <?php if ($this->_tpl_vars['cur_catalog'] == $this->_tpl_vars['folder']['id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['folder']['title']; ?>
</option>
    <?php endforeach; else: ?>
        <option >Root</option>
    <?php endif; unset($_from); ?>
    </select>
    </form>
    <?php else: ?>
    <font class='red'> You must create a catalog before adding a product </font> 
    </form>
    <?php endif; ?>
</div>
<br/>
    <?php if ($this->_tpl_vars['folder_locations_empty'] != 'Y'): ?>
<form method="POST" action="<?php echo $this->_tpl_vars['action_url']; ?>
" id="sibling_form" >
<?php echo $this->_tpl_vars['productlist']; ?>

<?php echo $this->_tpl_vars['sibling']; ?>

<input type='hidden' name='catalog_id' value='<?php echo $this->_tpl_vars['cur_catalog']; ?>
'>
</form>
<br/>
<form method='post' action='<?php echo $this->_tpl_vars['add_url']; ?>
'>
    <div>
        <input type='submit' value='Add Product' class="button"/>
    </div>
</form>
<br/>
<form method='post' action='<?php echo $this->_tpl_vars['add_url_diamond']; ?>
'>
    <div>
        <input type='submit' value='Add Loose Diamond' class="button"/>
    </div>
</form>

<form method='post' action='<?php echo $this->_tpl_vars['check_valid']; ?>
'>
<div>
<input type='hidden' name='action' value='checkvalid'>
</div>
</form>

<?php endif; ?>